//
//  CJCellBottomView.m
//  KaiJing
//
//  Created by lanou on 16/1/11.
//  Copyright © 2016年 HuangZuCui. All rights reserved.
//

#import "CJCellBottomView.h"


#define kViewSpace 10    // view 之间的距离  和 边距
#define kLabelWidth 40   // label 的宽度

@implementation CJCellBottomView


//初始化
- (instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        
        //点赞
        _praiseButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _praiseButton.frame = CGRectMake(kViewSpace, 0, self.height, self.height);
       // _praiseButton.backgroundColor = [UIColor redColor];
        [self addSubview:_praiseButton];
        
        
        _praiseLabel = [[UILabel alloc] initWithFrame:CGRectMake(_praiseButton.right + kViewSpace, _praiseButton.top, kLabelWidth, self.height)];
        _praiseLabel.font = [UIFont systemFontOfSize:16];
       // _praiseLabel.backgroundColor = [UIColor redColor];
        [self addSubview:_praiseLabel];
        
        
        
        //评论
        _commentButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _commentButton.frame = CGRectMake(_praiseLabel.right + kViewSpace, _praiseLabel.top, self.height, self.height);
       // _commentButton.backgroundColor = [UIColor redColor];
        [self addSubview:_commentButton];
        
        
        _commentLabel = [[UILabel alloc] initWithFrame:CGRectMake(_commentButton.right + kViewSpace, _commentButton.top, kLabelWidth, self.height)];
        _commentLabel.font = [UIFont systemFontOfSize:16];
      //  _commentLabel.backgroundColor = [UIColor redColor];
        [self addSubview:_commentLabel];
        
        
        //更多
        _moreButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _moreButton.frame = CGRectMake(kScreenWidth - self.height - kViewSpace, _commentLabel.top, self.height, self.height);
       // _moreButton.backgroundColor = [UIColor redColor];
        [self addSubview:_moreButton];
        
        
    }
    
    return self;
    
}



@end
